package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportOrderServiceTotalDayMapper;
import com.yungu.swift.report.entity.ReportOrderServiceTotalDay;
import com.yungu.swift.report.service.OrderServiceTotalDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;


/**
 * ReportOrderServiceTotalDayServiceImpl
 **/
@Component
public class OrderServiceTotalDayServiceImpl extends BaseServiceImpl<ReportOrderServiceTotalDay> implements OrderServiceTotalDayService {
    @Autowired
    private ReportOrderServiceTotalDayMapper<ReportOrderServiceTotalDay> reportOrderServiceTotalDayMapper;

    @Override
    public IMapper<ReportOrderServiceTotalDay> getMapper() {
        return reportOrderServiceTotalDayMapper;
    }

    @Override
    public ResponseData<ReportOrderServiceTotalDay> getAvgInfo(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(reportOrderServiceTotalDayMapper.getAvgInfo(reportParam));
    }
}